<div class="fuzzy_search_content">
    <div class="fuzzy_container">
        <div id="tab-header" class="fuzzy_filter">
            <ul class="detail_main_nav clear">

                <!-- session.tenantType == 为快销版本  所有可能显示的菜单为代理商，终端以及联系人
                    非快消版本菜单的集合为：客户，联系人，线索，商机，合作伙伴
                     data.setting不存在表示没有配置，显示所有能顯示的的菜单
                 -->

                {{if SESSION.tenantType == 1 && (!data.setting || (data.setting.crm && data.setting.crm.agent))}}
                    <li class="hover" act="agent_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="agent" title="">{{SESSION.menuKeywords.agent}}</a>
                        <span class="tip_number">{{data.agentCount}}</span>
                    </li>
                {{/if}}
                {{if SESSION.tenantType != 1 &&  (!data.setting || (data.setting.crm && data.setting.crm.account))}}
                     <li class="hover" act="account_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="account" title="">
                        {{if data.wanxue}}
                        学员
                        {{else}}
                        {{SESSION.menuKeywords.account}}
                        {{/if}}
                        </a>
                        <span class="tip_number">{{data.accountCount}}</span>
                     </li>
                {{/if}}
                {{if SESSION.tenantType == 1 && (!data.setting || (data.setting.crm && data.setting.crm.terminal))}}
                    <li act="terminal_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="terminal" title="">{{SESSION.menuKeywords.terminal}}</a>
                        <span class="tip_number">{{data.terminalCount}}</span>
                    </li>
                {{/if}}
                {{if SESSION.tenantType != 1 &&  (!data.setting || (data.setting.crm && data.setting.crm.opportunity))}}
                    <li act="opportunity_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="opportunity" title="">{{SESSION.menuKeywords.opportunity}}</a>
                        <span class="tip_number">{{data.opportunityCount}}</span>
                    </li>
                {{/if}}
                {{if SESSION.tenantType != 1 &&  (!data.setting || (data.setting.crm && data.setting.crm.lead))}}
                    <li act="lead_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="lead" title="">{{SESSION.menuKeywords.lead}}</a>
                        <span class="tip_number">{{data.leadCount}}</span>
                    </li>
                {{/if}}
                {{if !data.setting || (data.setting.crm && data.setting.crm.contact)}}
                    <li act="contact_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="contact" title="">{{SESSION.menuKeywords.contact}}</a>
                        <span class="tip_number">{{data.contactCount}}</span>
                    </li>
                {{/if}}
                {{if SESSION.tenantType != 1 &&  (!data.setting || (data.setting.crm && data.setting.crm.partner))}}
                    <li act="partner_li" tabNameSearch="crm">
                        <a href="javascript:;" act="search_tab_crm_tab" tabname="partner" title="">{{SESSION.menuKeywords.partner}}</a>
                        <span class="tip_number">{{data.partnerCount}}</span>
                    </li>
                {{/if}}
            </ul>
        </div>
        <div class="fuzzy_result_div" act="fuzzy_result_div">
            {{if data.tabName == "account"}} {{each data.accounts as account i}}
            <div class="fuzzy_search_result">
                <div class="result_content">
                    <div class="detail_title">
                        {{if account.canView == 'true'}}
                        <!--<a class="user_name js_customer_name" href="javascript:;">{{account.accountName}}</a>-->
                        <a target="_blank" href="/account_detail.action?id={{account.id}}" class="user_name" customerid="{{account.id}}">{{account.accountName}}</a> {{else}}
                        <span class="user_name">{{account.accountName}}</span> {{/if}}
                        {{if account.highSeaId}}
                        <span class="customers">
                            <span class="ico highsea"></span>
                            <span>{{account.highSeaId}}</span>
                        </span>
                        {{/if}}
                    </div>
                    <span class="detail_follow">
                    {{if account.canView == 'true' && account.relation.flag == 'true'}}

                        {{if account.relation.status == 'true'}}
                            <a groupid="{{account.groupId}}" type="{{account.relation.type}}" title="{{'CANCEL_INTEREST' | i18n}}" class="has_follow js-attention" href="javascript:;" act="act_attention"></a>
                            <!--<a href="javascript:;" class="has_follow js-attention" title="{{'CANCEL_INTEREST' | i18n}}" type="j"></a>-->
                        {{else}}
                            <a groupid="{{account.groupId}}" type="{{account.relation.type}}" title="{{'PLUS_INTEREST' | i18n}}" class="no_follow js-attention" href="javascript:;" act="act_attention"></a>
                        {{/if}}

                    {{/if}}
                    </span>
                    <span class="detail_operate">
                    {{if account.canGet == 'true'}}
                        <a entityid="{{account.id}}" entityname="{{account.accountName}}" belongid="1" class="get" href="javascript:;" act="act_get">{{'HIGHSEA_12' | i18n}}</a>
                    {{/if}}
                    {{if account.canView == 'true' && account.canAllot == 'true'}}
                        <a entityid="{{account.id}}" entityname="{{account.accountName}}" highseaid="{{account.highSeaId}}" belongid="1" class="allot" href="javascript:;" act="act_allot">{{'HIGHSEA_24' | i18n}}</a>
                    {{/if}}
                    </span>
                </div>
                <div class="result_data_table">
                    <div class="fuzzy_table">
                        <div class="fuzzy_table_content">
                            {{if account.canView == 'true'}}
                                <div style="width:20%">
                                    <span class="title">
                                    {{if data.wanxue}}学员所有人
                                    {{else}}
                                        {{ 'search_charge_person_account' | i18n }}
                                        {{/if}}：</span>
                                    <div class="people_name clear">
                                        <span class="content">
                                        {{if account.ownerName}}
                                        <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{account.ownerId}}"></span><img src={{account.ownerIcon}}></a>
                                        {{account.ownerName}}
                                        {{/if}}
                                        </span>
                                    </div>
                                </div>
                                {{if data.itemAuth.hasOwnProperty("level")}}
                                <div style="width:33%">
                                    <span class="title">
                                    {{if data.wanxue}}学员级别
                                       {{else}}
                                    {{ 'search_account_level' | i18n }}
                                    {{/if}}：</span>
                                    <span class="content">{{account.level}}</span>
                                </div>
                                {{/if}}
                                {{if data.itemAuth.hasOwnProperty("employeeNumber")}}
                                <div style="width:27%">
                                    <span class="title">{{ 'search_Total_number' | i18n }}：</span>
                                    <span class="content">{{account.employeeNumber}}</span>
                                </div>
                                {{/if}}
                                {{if data.itemAuth.hasOwnProperty("state")}}
                                <div style="width:20%">
                                    <span class="title">{{ 'search_province' | i18n }}：</span>
                                    <span class="content">{{account.state}}</span>
                                </div>
                                {{/if}}
                                {{if data.itemAuth.hasOwnProperty("phone")}}
                                <div style="width:20%">
                                    <span class="title">{{ 'search_province_mobile' | i18n }}：</span>
                                    <span class="content">{{account.phone}}</span>
                                </div>
                                {{/if}}
                                <div style="width:33%">
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{account.createdAt}}</span>
                                </div>
                            {{else}}
                                <div style="width:20%">
                                    <span class="title">
                                        {{if data.wanxue}}学员所有人
                                            {{else}}
                                            {{ 'search_charge_person_account' | i18n }}
                                            {{/if}}：</span>
                                    <div class="people_name clear">
                                        <span class="content">
                                        {{if account.ownerName}}
                                        <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{account.ownerId}}"></span><img src={{account.ownerIcon}}></a>
                                        {{account.ownerName}}
                                        {{/if}}
                                        </span>
                                    </div>
                                </div>
                                <div style="width:33%">
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{account.createdAt}}</span>
                                </div>
                            {{/if}}
                        </div>
                    </div>
                </div>
                <!--<div class="oprate_area">-->
                <!--<a class="delete" href="#">删除</a>-->
                <!--<a class="transfer" href="#">转移</a>-->
                <!--</div>-->
            </div>
            {{/each}}
            {{if data.accounts.length == 0}}
            <div class="oa-listview-default">
                <div class="ico"></div>
                <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
            </div>
            {{/if}}

            {{else if data.tabName == "agent"}}
                {{each data.agents as account i}}
                <div class="fuzzy_search_result">
                    <div class="result_content">
                        <div class="detail_title">
                            {{if account.canView == 'true'}}
                            <!--<a class="user_name js_customer_name" href="javascript:;">{{account.accountName}}</a>-->
                            <a href="javascript:;" class="user_name js_agent_name" customerid="{{account.id}}">{{account.accountName}}</a> {{else}}
                            <span class="user_name">{{account.accountName}}</span> {{/if}}
                            {{if account.highSeaId}}
                            <span class="customers">
                                <span class="ico highsea"></span>
                                <span>{{account.highSeaId}}</span>
                            </span>
                            {{/if}}
                        </div>
                        <span class="detail_follow">
                        {{if account.canView == 'true' && account.relation.flag == 'true'}}

                            {{if account.relation.status == 'true'}}
                                <a groupid="{{account.groupId}}" type="{{account.relation.type}}" title="{{'CANCEL_INTEREST' | i18n}}" class="has_follow js-attention" href="javascript:;" act="act_attention"></a>
                                <!--<a href="javascript:;" class="has_follow js-attention" title="{{'CANCEL_INTEREST' | i18n}}" type="j"></a>-->
                            {{else}}
                                <a groupid="{{account.groupId}}" type="{{account.relation.type}}" title="{{'PLUS_INTEREST' | i18n}}" class="no_follow js-attention" href="javascript:;" act="act_attention"></a>
                            {{/if}}

                        {{/if}}
                        </span>
                    </div>
                    <div class="result_data_table">
                        <table class="fuzzy_table">
                            <tbody>
                                {{if account.canView == 'true'}}
                                <tr>
                                    <td style="width:20%">
                                        <span class="title">代理商所有人：</span>
                                        <div class="people_name clear">
                                            <span class="content">
                                            {{if account.ownerName}}
                                            <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{account.ownerId}}"></span><img src={{account.ownerIcon}}></a>
                                            {{account.ownerName}}
                                            {{/if}}
                                            </span>
                                        </div>
                                    </td>
                                    <td style="width:33%">
                                        <span class="title">类型：</span>
                                        <span class="content">{{account.level}}</span>
                                    </td>
                                    <td style="width:27%">
                                        <span class="title">上级代理商：</span>
                                        <span class="content">{{if account.parentAccount}}{{account.parentAccount.name}}{{/if}}</span>
                                    </td>
                                    <td style="width:20%">
                                        <span class="title">地区：</span>
                                        <span class="content">{{account.state}}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span class="title">{{ 'search_province_mobile' | i18n }}：</span>
                                        <span class="content">{{account.phone}}</span>
                                    </td>
                                    <td>
                                        <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                        <span class="content">{{account.createdAt}}</span>
                                    </td>
                                </tr>
                                {{else}}
                                <tr>
                                    <td style="width:20%">
                                        <span class="title">代理商所有人：</span>
                                        <div class="people_name clear">
                                            <span class="content">
                                            {{if account.ownerName}}
                                            <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{account.ownerId}}"></span><img src={{account.ownerIcon}}></a>
                                            {{account.ownerName}}
                                            {{/if}}
                                            </span>
                                        </div>
                                    </td>
                                    <td style="width:33%">
                                        <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                        <span class="content">{{account.createdAt}}</span>
                                    </td>
                                </tr>
                                {{/if}}
                            </tbody>
                        </table>
                    </div>
                    <!--<div class="oprate_area">-->
                    <!--<a class="delete" href="#">删除</a>-->
                    <!--<a class="transfer" href="#">转移</a>-->
                    <!--</div>-->
                </div>
                {{/each}}
                {{if data.agents.length == 0}}
                <div class="oa-listview-default">
                    <div class="ico"></div>
                    <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
                </div>
            {{/if}}


            {{else if data.tabName == "terminal"}}
                {{each data.terminals as account i}}
                <div class="fuzzy_search_result">
                    <div class="result_content">
                        <div class="detail_title">
                            {{if account.canView == 'true'}}
                            <!--<a class="user_name js_customer_name" href="javascript:;">{{account.accountName}}</a>-->
                            <a href="javascript:;" class="user_name js_terminal_name" customerid="{{account.id}}">{{account.accountName}}</a> {{else}}
                            <span class="user_name">{{account.accountName}}</span> {{/if}}
                            {{if account.highSeaId}}
                            <span class="customers">
                                <span class="ico highsea"></span>
                                <span>{{account.highSeaId}}</span>
                            </span>
                            {{/if}}
                        </div>
                        <span class="detail_follow">
                        {{if account.canView == 'true' && account.relation.flag == 'true'}}

                            {{if account.relation.status == 'true'}}
                                <a groupid="{{account.groupId}}" type="{{account.relation.type}}" title="{{'CANCEL_INTEREST' | i18n}}" class="has_follow js-attention" href="javascript:;" act="act_attention"></a>
                                <!--<a href="javascript:;" class="has_follow js-attention" title="{{'CANCEL_INTEREST' | i18n}}" type="j"></a>-->
                            {{else}}
                                <a groupid="{{account.groupId}}" type="{{account.relation.type}}" title="{{'PLUS_INTEREST' | i18n}}" class="no_follow js-attention" href="javascript:;" act="act_attention"></a>
                            {{/if}}

                        {{/if}}
                        </span>
                    </div>
                    <div class="result_data_table">
                        <table class="fuzzy_table">
                            <tbody>
                                {{if account.canView == 'true'}}
                                <tr>
                                    <td style="width:20%">
                                        <span class="title">终端所有人：</span>
                                        <div class="people_name clear">
                                            <span class="content">
                                            {{if account.ownerName}}
                                            <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{account.ownerId}}"></span><img src={{account.ownerIcon}}></a>
                                            {{account.ownerName}}
                                            {{/if}}
                                            </span>
                                        </div>
                                    </td>
                                    <td style="width:33%">
                                        <span class="title">类型：</span>
                                        <span class="content">{{account.level}}</span>
                                    </td>
                                    <td style="width:27%">
                                        <span class="title">代理商：</span>
                                        <span class="content">{{if account.parentAccount}}{{account.parentAccount.name}}{{/if}}</span>
                                    </td>
                                    <td style="width:20%">
                                        <span class="title">地区：</span>
                                        <span class="content">{{account.state}}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span class="title">{{ 'search_province_mobile' | i18n }}：</span>
                                        <span class="content">{{account.phone}}</span>
                                    </td>
                                    <td>
                                        <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                        <span class="content">{{account.createdAt}}</span>
                                    </td>
                                </tr>
                                {{else}}
                                <tr>
                                    <td style="width:20%">
                                        <span class="title">终端所有人：</span>
                                        <div class="people_name clear">
                                            <span class="content">
                                            {{if account.ownerName}}
                                            <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{account.ownerId}}"></span><img src={{account.ownerIcon}}></a>
                                            {{account.ownerName}}
                                            {{/if}}
                                            </span>
                                        </div>
                                    </td>
                                    <td style="width:33%">
                                        <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                        <span class="content">{{account.createdAt}}</span>
                                    </td>
                                </tr>
                                {{/if}}
                            </tbody>
                        </table>
                    </div>
                    <!--<div class="oprate_area">-->
                    <!--<a class="delete" href="#">删除</a>-->
                    <!--<a class="transfer" href="#">转移</a>-->
                    <!--</div>-->
                </div>
                {{/each}}
                {{if data.terminals.length == 0}}
                <div class="oa-listview-default">
                    <div class="ico"></div>
                    <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
                </div>
            {{/if}}



            {{else if data.tabName == "opportunity"}} {{each data.opportunities as opportunity i}}
            <div class="fuzzy_search_result">
                <div class="result_content">
                    <div class="detail_title">
                        {{if opportunity.canView == 'true'}}
                        <!--<a class="user_name" href="#">{{opportunity.opportunityName}}</a>-->
                        <a target="_blank" href="/opportunity_detail.action?id={{opportunity.id}}" class="user_name" opportunityid="{{opportunity.id}}">{{opportunity.opportunityName}}</a>
                        <!--<span class="customers">华北区客户</span>-->
                        {{else}}
                        <span class="user_name">{{opportunity.opportunityName}}</span> {{/if}}
                    </div>
                    <span class="detail_follow">
                    {{if opportunity.canView == 'true' && opportunity.relation.flag == 'true'}}

                        {{if opportunity.relation.status == 'true'}}
                            <a groupid="{{opportunity.groupId}}" type="{{opportunity.relation.type}}" title="{{'CANCEL_INTEREST' | i18n}}" class="has_follow js-attention" href="javascript:;" act="act_attention"></a>
                            <!--<a href="javascript:;" class="has_follow js-attention" title="{{'CANCEL_INTEREST' | i18n}}" type="j"></a>-->
                        {{else}}
                            <a groupid="{{opportunity.groupId}}" type="{{opportunity.relation.type}}" title="{{'PLUS_INTEREST' | i18n}}" class="no_follow js-attention" href="javascript:;" act="act_attention"></a>
                        {{/if}}

                    {{/if}}
                    </span>
                </div>
                <div class="result_data_table">
                    <table class="fuzzy_table">
                        <tbody>
                            {{if opportunity.canView == 'true'}}
                            <tr>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_create_Person_charge' | i18n }}：</span>
                                    <div class="people_name clear">
                                        <span class="content">
                                        {{if opportunity.ownerName}}
                                        <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{opportunity.ownerId}}"></span><img src={{opportunity.ownerIcon}}></a>
                                        {{opportunity.ownerName}}
                                        {{/if}}
                                        </span>
                                    </div>
                                </td>
                                <td style="width:33%">
                                    <span class="title">{{ 'search_account' | i18n }}：</span>
                                    <span class="content  customer">{{if data.accounts[opportunity.accountId]}}{{data.accounts[opportunity.accountId].accountName}}{{/if}}</span>
                                </td>
                                <td style="width:27%">
                                    <span class="title">{{ 'search_Opportunity_type' | i18n }}：</span>
                                    <span class="content">{{opportunity.opportunityType}}</span>
                                </td>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_Amount_money' | i18n }}：</span>
                                    <span class="content">{{opportunity.money}}</span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span class="title">{{ 'search_Knot_date' | i18n }}：</span>
                                    <span class="content">{{opportunity.closeDate}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_Sales_stage' | i18n }}：</span>
                                    <span class="content">{{opportunity.saleStageId}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_Win_rate' | i18n }}：</span>
                                    <span class="content">{{opportunity.winRate}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{opportunity.createdAt}}</span>
                                </td>
                            </tr>
                            {{else}}
                            <tr>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_create_Person_charge' | i18n }}：</span>
                                    <div class="people_name clear">
                                        <span class="content">
                                        {{if opportunity.ownerName}}
                                        <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{opportunity.ownerId}}"></span><img src={{opportunity.ownerIcon}}></a>
                                        {{opportunity.ownerName}}
                                        {{/if}}
                                        </span>
                                    </div>
                                </td>
                                <td style="width:33%">
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{opportunity.createdAt}}</span>
                                </td>
                            </tr>
                            {{/if}}
                        </tbody>
                    </table>
                </div>
                <!--<div class="oprate_area">-->
                <!--<a class="delete" href="#">删除</a>-->
                <!--<a class="transfer" href="#">转移</a>-->
                <!-- </div>-->
            </div>
            {{/each}} {{if data.opportunities.length == 0}}
            <div class="oa-listview-default">
                <div class="ico"></div>
                <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
            </div>
            {{/if}}


            {{else if data.tabName == "lead"}} {{each data.leads as lead i}}
            <div class="fuzzy_search_result">
                <div class="result_content">
                    <div class="detail_title">
                        {{if lead.canView == 'true'}}
                        <!--<a class="user_name" href="#">{{lead.name}}</a>-->
                        <a href="javascript:;" class="user_name js_lead_name" customerid="{{lead.id}}">{{lead.name}}</a> {{else}}
                        <span class="user_name">{{lead.name}}</span> {{/if}}
                        {{if lead.highSeaId}}
                        <span class="customers">
                            <span class="ico leadhighsea"></span>
                            <span>{{lead.highSeaId}}</span>
                        </span>
                        {{/if}}
                    </div>
                    <span class="detail_operate">
                        {{if lead.canGet == 'true'}}
                            <a entityid="{{lead.id}}" entityname="{{lead.name}}" belongid="11" class="get" href="javascript:;" act="act_get">{{'HIGHSEA_12' | i18n}}</a>
                        {{/if}}
                        {{if lead.canView == 'true' && lead.canAllot == 'true'}}
                            <a entityid="{{lead.id}}" entityname="{{lead.name}}" highseaid="{{lead.highSeaId}}" belongid="11" class="allot" href="javascript:;" act="act_allot">{{'HIGHSEA_24' | i18n}}</a>
                        {{/if}}
                    </span>
                </div>
                <div class="result_data_table">
                    <table class="fuzzy_table">
                        <tbody>
                            {{if lead.canView == 'true'}}
                            <tr>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_company_name' | i18n }}：</span>
                                    <span class="content">{{lead.companyName}}</span>
                                </td>
                                <td style="width:33%">
                                    <span class="title">{{ 'search_create_Person_charge' | i18n }}：</span>
                                    <div class="people_name clear">
                                        <span class="content">
                                        {{if lead.ownerName}}
                                        <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{lead.ownerId}}"></span><img src={{lead.ownerIcon}}></a>
                                        {{lead.ownerName}}
                                        {{/if}}
                                        </span>
                                    </div>
                                </td>
                                <td style="width:27%">
                                    <span class="title">{{ 'search_duties' | i18n }}：</span>
                                    <span class="content">{{lead.post}}</span>
                                </td>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_Follow_up_status' | i18n }}：</span>
                                    <span class="content">{{lead.status}}</span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span class="title">{{ 'search_province_mobile' | i18n }}：</span>
                                    <span class="content">{{lead.phone}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_phone' | i18n }}：</span>
                                    <span class="content">{{lead.mobile}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_email' | i18n }}：</span>
                                    <span class="content">{{lead.email}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{lead.createdAt}}</span>
                                </td>
                            </tr>
                            {{else}}
                            <tr>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_company_name' | i18n }}：</span>
                                    <span class="content">{{lead.companyName}}</span>
                                </td>
                                <td style="width:33%">
                                    <span class="title">{{ 'search_create_Person_charge' | i18n }}：</span>
                                    <div class="people_name clear">
                                        <span class="content">
                                        {{if lead.ownerName}}
                                        <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{lead.ownerId}}"></span><img src={{lead.ownerIcon}}></a>
                                        {{lead.ownerName}}
                                        {{/if}}
                                        </span>
                                    </div>
                                </td>
                                <td style="width:33%">
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{lead.createdAt}}</span>
                                </td>
                            </tr>
                            {{/if}}
                        </tbody>
                    </table>
                </div>
                <!--<div class="oprate_area">-->
                <!--<a class="delete" href="#">删除</a>-->
                <!--<a class="transfer" href="#">转移</a>-->
                <!--</div>-->
            </div>
            {{/each}} {{if data.leads.length == 0}}
            <div class="oa-listview-default">
                <div class="ico"></div>
                <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
            </div>
            {{/if}}


            {{else if data.tabName == "contact"}} {{each data.contacts as contact i}}
            <div class="fuzzy_search_result">
                <div class="result_content">
                    <div class="detail_title">
                        {{if contact.canView == 'true'}}
                        <!--<a class="user_name" href="#">{{contact.contactName}}</a>-->
                        <a href="javascript:;" class="user_name js_contact_name" contactid="{{contact.id}}">{{contact.contactName}}</a> {{else}}
                        <span class="user_name">{{contact.contactName}}</span> {{/if}}
                    </div>
                </div>
                <div class="result_data_table">
                    <table class="fuzzy_table">
                        <tbody>
                            {{if contact.canView == 'true'}}
                            <tr>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_company_name' | i18n }}：</span>
                                    <span class="content">{{if data.accounts[contact.accountId]}} {{data.accounts[contact.accountId].accountName}} {{/if}}</span>
                                </td>
                                <td style="width:33%">
                                    <span class="title">{{ 'search_duties' | i18n }}：</span>
                                    <span class="content  customer">{{contact.post}}</span>
                                </td>
                                <td style="width:27%">
                                    <span class="title">{{ 'search_province_mobile' | i18n }}：</span>
                                    <span class="content">{{contact.phone}}</span>
                                </td>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_phone' | i18n }}：</span>
                                    <span class="content">{{contact.mobile}}</span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span class="title">{{ 'search_email' | i18n }}：</span>
                                    <span class="content">{{contact.email}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{contact.createdAt}}</span>
                                </td>
                            </tr>
                            {{else}}
                            <tr>
                                <td style="width:20%">
                                    <span class="title">{{ 'search_company_name' | i18n }}：</span>
                                    <span class="content">{{if data.accounts[contact.accountId]}} {{data.accounts[contact.accountId].accountName}} {{/if}}</span>
                                </td>
                                <td>
                                    <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                    <span class="content">{{contact.createdAt}}</span>
                                </td>
                            </tr>
                            {{/if}}
                        </tbody>
                    </table>
                </div>
                <!--<div class="oprate_area">-->
                <!--<a class="delete" href="#">删除</a>-->
                <!--<a class="transfer" href="#">转移</a>-->
                <!--</div>-->
            </div>
            {{/each}} {{if data.contacts.length == 0}}
            <div class="oa-listview-default">
                <div class="ico"></div>
                <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
            </div>
            {{/if}} {{/if}}



            {{if data.tabName == "partner"}} {{each data.partners as partner i}}
                        <div class="fuzzy_search_result">
                            <div class="result_content">
                                <div class="detail_title">
                                    {{if partner.canView == 'true'}}
                                    <!--<a class="user_name js_partner_name" href="javascript:;">{{partner.accountName}}</a>-->
                                    <a href="javascript:;" class="user_name js_partner_name" customerid="{{partner.id}}">{{partner.accountName}}</a> {{else}}
                                    <span class="user_name">{{partner.accountName}}</span> {{/if}}
                                    {{if partner.highSeaId}}
                                    <span class="customers">
                                        <span class="ico highsea"></span>
                                        <span>{{partner.highSeaId}}</span>
                                    </span>
                                    {{/if}}
                                </div>
                                <span class="detail_follow">
                                {{if partner.canView == 'true' && partner.relation.flag == 'true'}}

                                    {{if partner.relation.status == 'true'}}
                                        <a groupid="{{partner.groupId}}" type="{{partner.relation.type}}" title="{{'CANCEL_INTEREST' | i18n}}" class="has_follow js-attention" href="javascript:;" act="act_attention"></a>
                                        <!--<a href="javascript:;" class="has_follow js-attention" title="{{'CANCEL_INTEREST' | i18n}}" type="j"></a>-->
                                    {{else}}
                                        <a groupid="{{partner.groupId}}" type="{{partner.relation.type}}" title="{{'PLUS_INTEREST' | i18n}}" class="no_follow js-attention" href="javascript:;" act="act_attention"></a>
                                    {{/if}}

                                {{/if}}
                                </span>
                            </div>
                            <div class="result_data_table">
                                <table class="fuzzy_table">
                                    <tbody>
                                        {{if partner.canView == 'true'}}
                                        <tr>
                                            <td style="width:20%">
                                                <span class="title">合作伙伴所有人：</span>
                                                <div class="people_name clear">
                                                    <span class="content">
                                                    {{if partner.ownerName}}
                                                    <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{partner.ownerId}}"></span><img src={{partner.ownerIcon}}></a>
                                                    {{partner.ownerName}}
                                                    {{/if}}
                                                    </span>
                                                </div>
                                            </td>
                                            <td style="width:33%">
                                                <span class="title">合作伙伴级别：</span>
                                                <span class="content">{{partner.partnerLevel}}</span>
                                            </td>
                                            <td style="width:27%">
                                                <span class="title">{{ 'search_Total_number' | i18n }}：</span>
                                                <span class="content">{{partner.employeeNumber}}</span>
                                            </td>
                                            <td style="width:20%">
                                                <span class="title">{{ 'search_province' | i18n }}：</span>
                                                <span class="content">{{partner.state}}</span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <span class="title">{{ 'search_province_mobile' | i18n }}：</span>
                                                <span class="content">{{partner.phone}}</span>
                                            </td>
                                            <td>
                                                <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                                <span class="content">{{partner.createdAt}}</span>
                                            </td>
                                        </tr>
                                        {{else}}
                                        <tr>
                                            <td style="width:20%">
                                                <span class="title">合作伙伴所有人：</span>
                                                <div class="people_name clear">
                                                    <span class="content">
                                                    {{if partner.ownerName}}
                                                    <a class="avatar" href="javascript:;"><span class="avatar_masker" ucard="uid={{partner.ownerId}}"></span><img src={{partner.ownerIcon}}></a>
                                                    {{partner.ownerName}}
                                                    {{/if}}
                                                    </span>
                                                </div>
                                            </td>
                                            <td style="width:33%">
                                                <span class="title">{{ 'search_create_time' | i18n }}：</span>
                                                <span class="content">{{partner.createdAt}}</span>
                                            </td>
                                        </tr>
                                        {{/if}}
                                    </tbody>
                                </table>
                            </div>
                            <!--<div class="oprate_area">-->
                            <!--<a class="delete" href="#">删除</a>-->
                            <!--<a class="transfer" href="#">转移</a>-->
                            <!--</div>-->
                        </div>
                        {{/each}}
                        {{if data.partners.length == 0}}
                        <div class="oa-listview-default">
                            <div class="ico"></div>
                            <p>{{ 'search_no_query' | i18n }}"{{data.key}}"{{ 'search_no_query_1' | i18n }}</p>
                        </div>
                        {{/if}}
 {{/if}}

            <div class="oa-listview-footer" style="display:block">
                <div class="oa-listview-pagination" act="all_search_query_page_div"></div>
            </div>
        </div>
    </div>



</div>


